print("this is GameInfo.py")

HOME = "HOME"


# 食物类
# 方法： 放置/移除
# 点以25为单位
class GameInfo:
    def __init__(self):
        self.is_dead = False
        self.__score = 0
        self.__stage = 1
        self.__HOME = "HOME"
        self.__LOADING = "LOADING"
        self.__PLAYING = "PLAYING"
        self.__WIN = "WIN"
        self.__THANKS = "THANKS"
        self.state = self.__HOME

    @property
    def HOME(self):
        return self.__HOME

    @property
    def LOADING(self):
        return self.__LOADING

    @property
    def PLAYING(self):
        return self.__PLAYING

    @property
    def WIN(self):
        return self.__WIN

    @property
    def THANKS(self):
        return self.__THANKS

    def is_this_state(self, state):
        return self.state == state

    def add_stage(self):
        self.__stage += 1

    def add_score(self, score=10):
        self.__score += score

    # 不传按True算
    def set_is_dead(self, is_dead=True):
        self.__is_dead = is_dead

    def reset(self):
        self.__init__()

    @property
    def stage(self):
        return self.__stage

    @property
    def score(self):
        return self.__score
